x86/spec-ctrl: Enumeration for IBPB_RET
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 14 Jun 2022 15:18:36 +0000 (16:18 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 4 Nov 2022 13:20:27 +0000 (13:20 +0000)
commitb1a1df345aaf359f305d6d041e571929c9252645
tree9099f8443b05f2e061e5e9611c064276bbf3739d
parent1bdd7c438b399e2ecce9e3c72bd7c1ae56df60f8
x86/spec-ctrl: Enumeration for IBPB_RET

The IBPB_RET bit indicates that the CPU's implementation of MSR_PRED_CMD.IBPB
does flush the RSB/RAS too.

This is part of XSA-422 / CVE-2022-23824.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 24496558e650535bdbd22cc04731e82276cd1b3f)
tools/libs/light/libxl_cpuid.c
tools/misc/xen-cpuid.c
xen/arch/x86/spec_ctrl.c
xen/include/public/arch-x86/cpufeatureset.h